<script setup>
    import Login from './components/Login.vue';
    import {ref} from "vue"
    const loginRef = ref(null)
    // 对登陆状态进行校验
    const login = () => {
      console.log(loginRef.value.verify())
    }
</script>

<template>
  <div>
    <Login ref="loginRef"></Login>
    <button @click="login">登录</button>
  </div>
</template>

<style scoped>

</style>